<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::post('login', 'Api\ApiController@login');
Route::post('register', 'Api\ApiController@register');

Route::group(['middleware' => 'auth.jwt'], function () {
    Route::get('logout', 'Api\ApiController@logout');
    Route::get('test', function(){
        exit('132123');
    });

    Route::get('user', 'Api\ApiController@getAuthUser');

});
